import React, { Component } from 'react';
// import {Route,Switch,Redirect} from 'react-router-dom'


import MyIndexView from './IndexView'
// import informations from './informations/InformationsContainer'

class MyIndexContainer extends Component {
    state={
        informationsLis:{}
    }
    async componentDidMount(){
        let a =await fetch('/Legang/user/myface',{
            method:'post',
            body:{
                uid:this.props.uid,
            },
            headers:{'Content-Type': 'application/x-www-form-urlencoded'}
        }).then(response=>response.json()).then(res=>res)
       //  console.log(a,11111)
        this.setState({
            informationsList:a
        })
    }
    render() { 
        return ( 
            <>
                <MyIndexView informationsList={this.state.informationsList}></MyIndexView>
            </>
         );
    }
}
 
export default MyIndexContainer;